home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / mod.z / mod
Encoding:
Text File  |  2002-10-03  |  2.9 KB  |  83 lines

  1. MOD(3I)                                               Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      MMOODD, AAMMOODD, DDMMOODD, QQMMOODD, IIMMOODD, JJMMOODD, KKMMOODD - Computes remainder
  6.  
  7. SSYYNNOOPPSSIISS
  8.      MMOODD (([AA==]_a,,[PP==]_p))
  9.      AAMMOODD (([AA==]_a,,[PP==]_p))
  10.      DDMMOODD (([AA==]_a,,[PP==]_p))
  11.      QQMMOODD (([AA==]_a,,[PP==]_p))
  12.      IIMMOODD (([AA==]_a,,[PP==]_p))
  13.      JJMMOODD (([AA==]_a,,[PP==]_p))
  14.      KKMMOODD (([AA==]_a,,[PP==]_p))
  15.  
  16. IIMMPPLLEEMMEENNTTAATTIIOONN
  17.      UNICOS, UNICOS/mk, IRIX systems
  18.  
  19.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  20.  
  21. SSTTAANNDDAARRDDSS
  22.      Fortran
  23.  
  24.      Fortran extensions:  IIMMOODD, JJMMOODD, KKMMOODD, QQMMOODD
  25.  
  26. DDEESSCCRRIIPPTTIIOONN
  27.      These intrinsic functions compute the remainder of _a / _p.  MMOODD is the
  28.      generic function name; the others are specifics.  These are elemental
  29.      intrinsic functions.  They accept the following arguments:
  30.  
  31.      _a         Must be of type integer or real.
  32.  
  33.      _p         Must be of the same type and kind type as _a.  The result is
  34.                undefined if _p is zero.
  35.  
  36.      These functions evaluate _y = _a - _p * IINNTT(_a/_p).
  37.  
  38. NNOOTTEESS
  39.      The MMOODD, AAMMOODD, and DDMMOODD intrinsic function names can be passed as
  40.      arguments; the others cannot.
  41.  
  42. RREETTUURRNN VVAALLUUEESS
  43.      MMOODD returns the integer remainder of its integer arguments.
  44.  
  45.      AAMMOODD returns the single-precision real remainder of its
  46.      single-precision real arguments.
  47.  
  48.      DDMMOODD returns the double-precision real remainder of its
  49.      double-precision real arguments.
  50.  
  51.      QQMMOODD returns the quad-precision real remainder of its quad-precision
  52.      real arguments.
  53.  
  54.      IIMMOODD returns the integer (KIND=2) remainder of its integer (KIND=2)
  55.      arguments.
  56.  
  57.      JJMMOODD returns the integer (KIND=4) remainder of its integer (KIND=4)
  58.      arguments.
  59.  
  60.      KKMMOODD returns the integer (KIND=8) remainder of its integer (KIND=8)
  61.      arguments.
  62.  
  63.      The data type and kind type for single-precision, double-precision,
  64.      and quad-precision values differ depending on your platform.  For
  65.      platform-specific information, see the TERMINOLOGY section of the
  66.      IINNTTRROO__IINNTTRRIINN(3I) man page.
  67.  
  68. EEXXAAMMPPLLEESS
  69.      The following examples show the results of calling MMOODD with all
  70.      possible combinations of positive and negative integers:
  71.  
  72.           MMOODD((77,,44))  = 3
  73.  
  74.           MMOODD((--77,,44))  = -3
  75.  
  76.           MMOODD((77,,--44))  = 3
  77.  
  78.           MMOODD((--77,,--44))  = -3
  79.  
  80. SSEEEE AALLSSOO
  81.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  82.      man page.
  83.